<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <%- include('head', {title:'首页 '}) %>
    <h1><%= title %></h1>
    <p>Welcome to <%= title %></p>
    <p>wh2114 - 天道酬勤</p>
      
    <hr>
    <% if(username){  %>
      <div>
        <p>欢迎你:</p>
        <h2>
          username == <%- username %>
        </h2>
        <h2>手机号码 === <%- userInfo.phone %></h2>
        <p>
          <button onclick="location.href='/logout'" >注销登录</button>
          <button onclick="location.href='/mlist'" >千锋电影商城</button>
        </p>
      </div>
   <%   }else{  %> 
      <button onclick="location.href='/login'">点击登录</button>
      <button onclick="location.href='/register'">点击注册</button>
    <%  }  %> 

    
    <%- include foot  %>
  </body>
</html>
